package com.dzsw.javabase.str;

public class SplitSample {

    public static void main(String[] args) {
        String s = "binal.datasource.dynamic.db1.type";
        String[] ss = s.split("\\.");
        System.out.println(ss.length);
    }
}
